/****************************************************************************
** Meta object code from reading C++ file 'serialdialog.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../yc335x/app/qserial/serialdialog.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'serialdialog.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.8.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_SerialDialog_t {
    QByteArrayData data[18];
    char stringdata0[204];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SerialDialog_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SerialDialog_t qt_meta_stringdata_SerialDialog = {
    {
QT_MOC_LITERAL(0, 0, 12), // "SerialDialog"
QT_MOC_LITERAL(1, 13, 14), // "OpenSerialPort"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 4), // "open"
QT_MOC_LITERAL(4, 34, 13), // "GetSerialPort"
QT_MOC_LITERAL(5, 48, 4), // "text"
QT_MOC_LITERAL(6, 53, 17), // "SetSerialPortAttr"
QT_MOC_LITERAL(7, 71, 13), // "DataAvailable"
QT_MOC_LITERAL(8, 85, 5), // "char*"
QT_MOC_LITERAL(9, 91, 15), // "CloseSerialPort"
QT_MOC_LITERAL(10, 107, 13), // "StartSendData"
QT_MOC_LITERAL(11, 121, 8), // "m_serial"
QT_MOC_LITERAL(12, 130, 11), // "m_dataArray"
QT_MOC_LITERAL(13, 142, 8), // "SendData"
QT_MOC_LITERAL(14, 151, 14), // "SetDisplayMode"
QT_MOC_LITERAL(15, 166, 11), // "SetSendMode"
QT_MOC_LITERAL(16, 178, 8), // "AutoSend"
QT_MOC_LITERAL(17, 187, 16) // "on_close_clicked"

    },
    "SerialDialog\0OpenSerialPort\0\0open\0"
    "GetSerialPort\0text\0SetSerialPortAttr\0"
    "DataAvailable\0char*\0CloseSerialPort\0"
    "StartSendData\0m_serial\0m_dataArray\0"
    "SendData\0SetDisplayMode\0SetSendMode\0"
    "AutoSend\0on_close_clicked"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SerialDialog[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      12,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    1,   74,    2, 0x0a /* Public */,
       1,    0,   77,    2, 0x2a /* Public | MethodCloned */,
       4,    1,   78,    2, 0x0a /* Public */,
       6,    1,   81,    2, 0x0a /* Public */,
       7,    2,   84,    2, 0x0a /* Public */,
       9,    0,   89,    2, 0x0a /* Public */,
      10,    2,   90,    2, 0x0a /* Public */,
      13,    0,   95,    2, 0x0a /* Public */,
      14,    1,   96,    2, 0x0a /* Public */,
      15,    1,   99,    2, 0x0a /* Public */,
      16,    1,  102,    2, 0x0a /* Public */,
      17,    0,  105,    2, 0x08 /* Private */,

 // slots: parameters
    QMetaType::Bool, QMetaType::Bool,    3,
    QMetaType::Bool,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int,    2,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::QByteArray,   11,   12,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void,

       0        // eod
};

void SerialDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SerialDialog *_t = static_cast<SerialDialog *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: { bool _r = _t->OpenSerialPort((*reinterpret_cast< bool(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 1: { bool _r = _t->OpenSerialPort();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 2: _t->GetSerialPort((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 3: _t->SetSerialPortAttr((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 4: _t->DataAvailable((*reinterpret_cast< char*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->CloseSerialPort(); break;
        case 6: _t->StartSendData((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QByteArray(*)>(_a[2]))); break;
        case 7: _t->SendData(); break;
        case 8: _t->SetDisplayMode((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 9: _t->SetSendMode((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 10: _t->AutoSend((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 11: _t->on_close_clicked(); break;
        default: ;
        }
    }
}

const QMetaObject SerialDialog::staticMetaObject = {
    { &QDialog::staticMetaObject, qt_meta_stringdata_SerialDialog.data,
      qt_meta_data_SerialDialog,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


const QMetaObject *SerialDialog::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *SerialDialog::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_SerialDialog.stringdata0))
        return static_cast<void*>(const_cast< SerialDialog*>(this));
    if (!strcmp(_clname, "Ui::SerialDialog"))
        return static_cast< Ui::SerialDialog*>(const_cast< SerialDialog*>(this));
    return QDialog::qt_metacast(_clname);
}

int SerialDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDialog::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 12;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
